import request from '@/utils/request.js'

export const changeBookAPI = function (id, name) {
  return request({
    url: 'books/' + id,
    method: 'put',
    data: {
      name
    }
  })
}
